package com.xuzmian.demo.java;

import com.xuzmian.demo.kotlin.PackageGlobalService;
import com.xuzmian.demo.kotlin.PackageGlobalServiceKt;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

public class JavaCallKotlinDemo {

    public String value;

    public static void main(String[] args) {
        System.out.println("hello world ------  ");
    }

    @Test
    public void test() {
        System.out.println("hello world ------ test  ");
        //kotlin 包函数调用
        PackageGlobalServiceKt.test();
        //kotlin 普通对象调用
        System.out.println(new PackageGlobalService().toString());
    }


}
